﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace Common.Service.DataTables
{

    [DataContract]
    public class DataTablesPageRequest
    {
        [DataMember]
        public int Echo { get; set; }

        [DataMember]
        public int DisplayStart { get; set; }

        [DataMember]
        public int DisplayLength { get; set; }

        [DataMember]
        public string ColumnNames { get; set; }

        [DataMember]
        public int Columns { get; set; }

        [DataMember]
        public string Search { get; set; }

        [DataMember]
        public bool Regex { get; set; }

        [DataMember]
        public int SortingCols { get; set; }

        [DataMember]
        public List<string> DataProp { get; set; }

        [DataMember]
        public List<bool> RegexColumns { get; set; }

        [DataMember]
        public List<bool> Searchable { get; set; }

        [DataMember]
        public List<bool> Sortable { get; set; }

        [DataMember]
        public List<int> SortCol { get; set; }

        [DataMember]
        public List<string> SearchColumns { get; set; }

        [DataMember]
        public List<string> SortDir { get; set; }
    }
}
